<?php
include_once("../config.php");
$uid = $_GET['uid'];
$sql = "select user.danwei as dwid,danwei.name as dw from user left join danwei on user.danwei=danwei.id where user.openid='$uid'";

$requ = mysqli_query($con,$sql);
$rs = mysqli_fetch_array($requ);
$dw=$rs['dw'];
$dwid=$rs['dwid'];
$result='{"status":"1","msg":"ok","dw":"'.$dw.'","dwid":"'.$dwid.'"}';
echo $result;







